package com.youkeyi.ddy.cloud.common.api.basic.storage.in;


import com.youkeyi.ddy.cloud.common.api.basic.storage.in.dto.StorageStockInListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.storage.in.param.StorageStockInCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.in.param.StorageStockInDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.in.param.StorageStockInQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.in.param.StorageStockInUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * StorageStockInCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/21 2:27 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/storage/stock/in/fallback")
public class StorageStockInCloudServiceFallback implements StorageStockInCloudService {

    @Override
    public StorageStockInListCloudDto query(StorageStockInQueryCloudParam param) {
        return new StorageStockInListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(StorageStockInCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(StorageStockInUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(StorageStockInDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
